package design.patterns.structural.adapter.objectadapter;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/4/1 17:15
 */
public class Adapter implements TypeC {
    private TypeB typeB;

    public Adapter(TypeB typeB) {
        this.typeB = typeB;
    }

    public String provideTypeC() {
        String s =typeB.provideTypeB();
        String replace = s.replace("B", "C");

        return  replace;
    }
}
